<template>
	<view>
		<image src="../../static/myImage/bg.png" mode="" class="bg"></image>
		<view class="back_box">
			<u-icon name="arrow-left" size="30" color="#ffffff" @click="back"></u-icon>
		</view>
		<view class="container">
			<image src="../../static/myImage/timg1.png" mode="" class="top_image"></image>
			<view class="bg_box">
				<image src="../../static/myImage/user.png" mode="" class="photo"></image>
				<text class="name">{{userInfo.name}}</text>
				<image :src="userInfo.qrcode" mode="" class="qrcode"></image>
				<text class="code">邀请码：{{userInfo.code}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userInfo: {
					name: '王二',
					qrcode: '../../static/myImage/timg.png',
					code: 666666
				}
			};
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.bg {
		position: absolute;
		width: 100%;
		height: 568upx;
		left: 0;
		top: 0;
	}
	.back_box {
		margin-bottom: 25upx;
		margin-top: 30upx;
	}
	.container {
		display: flex;
		flex-direction: column;
		align-items: center;
		z-index: 99;
		position: relative;
		.top_image {
			width: 576upx;
			height: 72upx;
			margin-bottom: 72upx;
		}
		.bg_box {
			display: flex;
			flex-direction: column;
			align-items: center;
			padding: 80upx 0;
			max-height: 956upx;
			width: 100%;
			background: url(../../static/myImage/bg2.png) no-repeat;
			background-size: 100% 100%;
			.photo {
				width: 120upx;
				height: 120upx;
				border-radius: 50%;
				margin-bottom: 30upx;
			}
			.name {
				font-size: 34upx;
				margin-bottom: 46upx;
			}
			.qrcode {
				width: 325upx;
				height: 325upx;
				padding: 18upx;
				border: 2upx solid #FFB4B1;
				margin-bottom: 105upx;
			}
			.code {
				padding: 18upx 65upx;
				border-radius: 10upx;
				background: #E56253;
				font-size: 30upx;
				color: #FFFFFF;
				margin-bottom: 30upx;
			}
		}
	}
</style>

<style>
	page {
		padding:45upx;
		background: #FFEFED;
	}
</style>
